package com.feige.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.feige.pojo.StudyUserOrderDO;
import com.feige.pojo.StudyUserOrderDetailDO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

//数据库实体类
public interface StudyUserOrderDetailMapper extends BaseMapper<StudyUserOrderDetailDO> {

    /**
     * 查询订单明细
     * @return
     */
    @Select("select * from study_user_order t1 left join study_user_order_detail t2 on t1.id = t2.order_id")
     List<Object> findOrderDetail();
}
